<?php
defined('IN_TS') or die('Access Denied.');

class svg extends tsApp {
    public function __construct($db) {
        $tsAppDb = array();
        include 'app/svg/config.php';
        //判断APP是否采用独立数据库
        if ($tsAppDb) {
            $db = new MySql($tsAppDb);
        }

        parent::__construct($db);
    }

    function getBoardById($boardid,$num=null) {
        $arrSvg = $this->findAll('svg',array('boardid' => $boardid),'addtime desc','svgid,boardid,name,cateid,userid,tags,path,photo',$num);

        return $arrSvg;
    }
}